<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>jsonp</title>
</head>
<body>
    
    <button id="btn">click</button>
    <textarea name="" id="text" cols="30" rows="10"></textarea>

    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        
        

        $(function () {

      
            $('#btn').on('click',function () {

                let url = 'http://v.juhe.cn/toutiao/index?type=top&key=APPKEY'.trim();

                $.ajax({
                    url: url,
                    method: 'GET',
                    dataType: 'jsonp',
                    contentType: 'json',
                    jsonpCallback: 'show'
                }).then(res=>{
                    console.log(res);
                },err=>{
                    console.log('err',err);
                })

            })

        })
    
    </script>

</body>
</html>